package com.stlm2.dems.dao.impl;

import org.springframework.stereotype.Repository;

import com.stlm2.dems.entity.ValueAddedServices;
import com.stlm2.dems.dao.ValueAddedServicesDao;
import com.stlm2.core.base.impl.BaseDaoImpl;

import java.util.List;

@Repository("valueAddedServicesDao")
public class ValueAddedServicesDaoImpl extends BaseDaoImpl<ValueAddedServices> implements ValueAddedServicesDao {

    @Override
    public ValueAddedServices getByLabel(String label) {
        return  selectOne("getByLabel",label);
    }

    @Override
    public List<ValueAddedServices> getByGoodsId(int goodsId) {
        return selectList("getByGoodsId",goodsId);
    }
}